package com.sy.service.settings;

import com.sy.bean.settings.Dictionary;
import com.sy.common.crud.IService;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DictionaryService extends IService<Dictionary> {

    /**
     * 字典查询
     * @param code
     * @return
     */
    List<Dictionary> queryDict(String code);

    /**
     * 新增字典
     * @param dictionary
     * @return
     */
    int saveDict(Dictionary dictionary);

    /**
     * 修改
     * @param dictionary
     * @return
     */
    int updateDict(Dictionary dictionary);

    /**
     * 删除
     * @param id
     * @return
     */
    int delDict(int id);
}
